<template>
    <div class="el-aside__logo"></div>
    <el-menu active-text-color="#ffd04b" background-color="#232323"  text-color="#fff"
             router>
      <el-menu-item index="/admin/userInfo">
        <el-icon>
          <Management />
        </el-icon>
        <span>用户管理</span>
      </el-menu-item>
      <el-menu-item index="/admin/article/category">
        <el-icon>
          <Management />
        </el-icon>
        <span>文章分类</span>
      </el-menu-item>
      <el-menu-item index="/admin/article/manage">
        <el-icon>
          <Promotion />
        </el-icon>
        <span>文章管理</span>
      </el-menu-item>
      <el-sub-menu >
        <template #title>
          <el-icon>
            <UserFilled />
          </el-icon>
          <span>个人中心</span>
        </template>
        <el-menu-item index="/admin/user/info">
          <el-icon>
            <User />
          </el-icon>
          <span>基本资料</span>
        </el-menu-item>
        <el-menu-item index="/admin/user/avatar">
          <el-icon>
            <Crop />
          </el-icon>
          <span>更换头像</span>
        </el-menu-item>
        <el-menu-item index="/admin/user/password">
          <el-icon>
            <EditPen />
          </el-icon>
          <span>重置密码</span>
        </el-menu-item>
      </el-sub-menu>
    </el-menu>
</template>
<script setup>
import {
  Management,
  Promotion,
  UserFilled,
  User,
  Crop,
  EditPen,
  SwitchButton,
  CaretBottom
} from '@element-plus/icons-vue'
import avatar from '@/assets/default.png'

</script>

<style lang="scss" scoped>
.layout-container {
  height: 100vh;

  .el-aside {
    background-color: #232323;

    &__logo {
      height: 120px;
      background: url('@/assets/logo.png') no-repeat center / 120px auto;
    }

    .el-menu {
      border-right: none;
    }
  }

}
</style>